
#include "Server.hpp"
#include <iostream>
#include <string>
#include <memory>

static void Usage(std::string proc)
{
    std::cout<<"\nServer\n\t"<<proc<<"port"<<std::endl;
}
int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        return -1;
    }
    uint16_t port = atoi(argv[1]);

    std::unique_ptr<Server::server> server1 (new Server::server(port));
    server1->initServe();
    server1->start();

    return 0;
}